import { getMaterialCodeList as getBaseGoodsList } from '@/api/process/mesProcessMaterial'
import { getBomVersionNumberList } from '@/api/order/mesProdOrder'
export const baseGoodsDialog2 = {
  data() {
    return {
      baseGoodsDialogVisible2: false, //表格弹框隐藏显示
      getBaseGoodsList, // 获取弹框数据接口
      hasBaseGoodsFooter: true, // 是否需要底部按钮默认true
      baseGoodsSearchDialog2: {
        inline: true,
        formDesc: {
          goodsCode: {
            type: 'input',
            layout: 8,
            label: $i18n.t('mesSalesOrder.goodsCode')
          },
          goodsName: {
            type: 'input',
            layout: 8,
            label: $i18n.t('mesSalesOrder.goodsName')
          }
        }
      },
      baseGoodsDialogColumn2: [
        {
          type: 'selection',
          fixed: 'left'
        },
        {
          type: 'index',
          label: $i18n.t('common.order'),
          width: 60,
          fixed: 'left'
        },
        // {
        //   prop: "erpMaterialId",
        //   label: "erp物料id",
        // },
        {
          prop: 'goodsCode',
          label: $i18n.t('mesSalesOrder.goodsCode'),
          width: 180,
          showOverflowTooltip: true,
          fixed: 'left'
        },
        {
          prop: 'goodsName',
          label: $i18n.t('mesSalesOrder.goodsName'),
          width: 180,
          showOverflowTooltip: true
        },
        {
          prop: 'goodsDesc',
          label: $i18n.t('mesSalesOrder.goodsDesc'),
          width: 180,
          showOverflowTooltip: true
        },
        {
          prop: 'yardsSixNine',
          label: $i18n.t('mesSalesOrder.yardsSixNine'),
          width: 180,
          showOverflowTooltip: true
        },
        {
          prop: 'seriesCode',
          label: $i18n.t('mesSalesOrder.seriesCode'),
          width: 120,
          showOverflowTooltip: true
        },
        {
          prop: 'seriesName',
          label: $i18n.t('mesSalesOrder.seriesName'),
          width: 180,
          showOverflowTooltip: true
        },

        {
          prop: 'unit',
          label: $i18n.t('mesSalesOrder.unit'),
          width: 150,
          showOverflowTooltip: true
        },
        {
          prop: 'specification',
          label: $i18n.t('mesSalesOrder.specification'),
          width: 150,
          showOverflowTooltip: true
        },
        {
          prop: 'gbCode',
          label: $i18n.t('mesSalesOrder.gbCode'),
          width: 150,
          showOverflowTooltip: true
        }
      ]
    }
  }
}
